package com.sentry;

import io.sentry.Sentry;

/**
 * @className: MyClass
 * @copyright: menusifu
 * @description: <一句话功能简述>
 * <功能详细描述>
 * @author: hubin
 * @date: 2021/10/13
 * @version: 1.0
 */
public class MyClass {

    public static void main(String[] args) {
        Sentry.init(options -> {
            options.setDsn("http://136bef6ec4324b3cbbed5194b0715a51@192.168.1.121:9000/3");
        });
        try {
            System.out.println(1/0);
        } catch (Exception e) {
            Sentry.captureException(e);
        }

    }

}
